-- GENERATED SPELL FOR [Gordok Mauler] --


function spell0_11442(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_11442', 626, 1)
end

function spell1_11442(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_11442', 568, 1)
end

function Sorts_11442(pUnit, Event)
local choix_sorts_11442 = math.random(0, 1)
if choix_sorts_11442 == 0 then
pUnit:RegisterEvent('spell0_11442', 1, 1)
end
if choix_sorts_11442 == 1 then
pUnit:RegisterEvent('spell1_11442', 1, 1)
end
end

function mob11442_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11442', math.random(1500, 3000), 1)
end

function mob11442_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11442_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11442_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11442, 1, 'mob11442_Action')
RegisterUnitEvent(11442, 2, 'mob11442_Leave')
RegisterUnitEvent(11442, 3, 'mob11442_Kill')
RegisterUnitEvent(11442, 4, 'mob11442_Die')
